<div id="addStaffPrivilegeModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="addPrivilegeModalLabel"
     aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <div class=" row">
                    <div class="col-lg-12">
                        <div class="ibox ">
                            <ul class="nav nav-tabs">
                                <li class="nav-item">
                                    <a class="nav-link" v-bind:class="{active:addStaffPrivilegeInfo._currentTab == 1}"
                                       v-on:click="changeTab(1)">权限组</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" v-bind:class="{active:addStaffPrivilegeInfo._currentTab == 2}"
                                       v-on:click="changeTab(2)">权限</a>
                                </li>
                            </ul>
                            <div class="table-responsive" style="margin-top:15px">
                                <table class="table table-striped" v-if="addStaffPrivilegeInfo._currentTab == 1">
                                    <thead>
                                    <tr>
                                        <th class="text-center">
                                            <input type="checkbox" class="i-checks"
                                                   v-bind:checked="addStaffPrivilegeInfo.quanGroup == true"
                                                   @click="checkAllGroup($event)">
                                        </th>
                                        <th class="text-center">权限组编码</th>
                                        <th class="text-center">权限组名称</th>
                                        <th class="text-center">权限组描述</th>
                                        <th class="text-center">创建时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr v-for="privilegeGroup in addStaffPrivilegeInfo._noAddPrivilegeGroup">
                                        <td class="text-center">
                                            <input type="checkbox" class="i-checks checkGroupItem"
                                                   v-bind:value="privilegeGroup.pgId"
                                                   v-model="addStaffPrivilegeInfo.selectPrivilegeGroups">
                                        </td>
                                        <td class="text-center">{{privilegeGroup.pgId}}</td>
                                        <td class="text-center">{{privilegeGroup.name}}</td>
                                        <td class="text-center">{{privilegeGroup.description}}</td>
                                        <td class="text-center">{{vc.dateFormat(privilegeGroup.createTime)}}</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <table class="table table-striped" v-if="addStaffPrivilegeInfo._currentTab == 2">
                                    <thead>
                                    <tr>
                                        <th class="text-center">
                                            <input type="checkbox" class="i-checks "
                                                   v-bind:checked="addStaffPrivilegeInfo.quan == true"
                                                   @click="checkAll($event)">
                                        </th>
                                        <th class="text-center">权限编码</th>
                                        <th class="text-center">权限名称</th>
                                        <th class="text-center">权限描述</th>
                                        <th class="text-center">创建时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr v-for="privilege in addStaffPrivilegeInfo._noAddPrivilege">
                                        <td class="text-center">
                                            <input type="checkbox" class="i-checks checkItem"
                                                   v-bind:value="privilege.pId"
                                                   v-model="addStaffPrivilegeInfo.selectPrivileges">
                                        </td>
                                        <td class="text-center">{{privilege.pId}}</td>
                                        <td class="text-center">{{privilege.name}}</td>
                                        <td class="text-center">{{privilege.description}}</td>
                                        <td class="text-center">{{vc.dateFormat(privilege.createTime)}}</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" v-on:click="addStaffPrivilege()">提交</button>
            </div>
        </div>
    </div>
</div>